package com.im.auth.controller;

import com.im.auth.api.AuthApi;
import com.im.auth.service.AuthService;
import com.im.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Created leijun
 * @Date 2021/11/7 10:55 上午
 */
@RestController
public class AuthController implements AuthApi {

    @Autowired
    private AuthService authService;

    @Override
    public Result auth(String token) {
        return authService.authenticate(token);
    }
}
